package com.dpiinc.TechPage.pen.dialog


import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.WindowManager
import com.dpiinc.TechPage.R

/**
 * TODO name
 * Created by X on 2018/7/4.
 */
open class BaseFloatDialog(context: Context?) : Dialog(context!!, R.style.floatDialogTheme) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setCanceledOnTouchOutside(false)
        window?.setType(WindowManager.LayoutParams.TYPE_APPLICATION)
    }

}